/*
 * DEManalyzer.cpp
 *
 *  Created on: 18/set/2012
 *      Author: lordmzn
 *
 *      TO RUN
 *      g++ -Wall DEManalyzer.o LandscapeModel.o LandscapeModelEnums.o HydroDEMTools/DEM.o HydroDEMTools/TEE.o HydroDEMTools/EEE.o HydroDEMTools/Mask.o Utilities/TXTFileParser.o Utilities/TXTFileWriter.o Utilities/LogFileProducer.o -o main
 *
 */
#include <sys/time.h>
#include "LandscapeModel.h"
#include <string>
#include <iostream>

/* This main is to build the hydrological network of a given DEM */
int main(int argc, char **argv) {
	if (argc < 2) {
		std::cout << "You have to provide the name of the file "
				"with the parameters." << std::endl;
		return (0);
	}
	LandscapeModel model;
	if (model.initializeModel(argv[1])) {
		GLE::ObjectType o[5];
		o[0] = GLE::DEM_T;
		o[1] = GLE::SLOPE;
		o[2] = GLE::FLOW_DIRECTION;
		o[3] = GLE::FLOW_LENGTH;
		o[4] = GLE::DRAINED_AREA;
		if (model.saveDataToFile(o, 5, GLE::BASE_OPT)) {
			std::cout<<"yuppi"<<std::endl;
		}
	}
}
